#@adminLayout()
#define main()
###页面显示的按钮 C:增加按钮,R:查询按钮/清空查询按钮,U:修改按钮,D:删除按钮,I:Excel导入按钮,E:Excel导出按钮,O:tr中操作列,B:checkBox复选框
#set(map={},
aTh = [   "IP",  "端口",  "地址",  "接入时间",  "断开时间",  "连接时长(秒)",  "发送数据包数量" ],
aTd = [  "ip",  "port",  "address",  "connectionAt",  "disconnectionAt",  "runningTime",  "receivedPackets" ])
<div class="card">
    #@cardIndex("设备在线信息","ciis/equipment/connectInfo",map,aTh,aTd)
</div>
#end

###条件模糊查询
#define cardQuery()
<div class="col-sm-4">
    <div class="form-group">
        <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>名称</lable>
        <input type="hidden" name="id" value="#(model.id)">
        <input type="text" name="name" value="#(model.name??)"
               class="form-control" placeholder="请输入名称">
        <i class="form-group__bar"></i>
    </div>
</div>
<div class="col-sm-4">
    <div class="form-group">
        <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>编号</lable>
        <input type="text" name="code" value="#(model.code??)"
               class="form-control" placeholder="请输入编号">
        <i class="form-group__bar"></i>
    </div>
</div>
#end
#define cardIndexTbody()
<td data-column="isDel">#(x.isDel==1?'已删除':'--')</td>
#end

